package com.sharemarking.wa.platform.dto.message;

import java.util.Date;

/**
 * @author dxy
 */
public class MessageContentDto {
    private Integer id;
    private String title;
    private String body;
    private Date createDate;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title + body;
    }

    public void setTitle(String title) {
        this.title = title ;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public Long getCreateDate() {
        if (createDate != null) {
            return createDate.getTime();
        }
        return null;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

}
